/**
 * Created by CZ on 2017/4/21.
 */
module.exports = function ($scope,$state,RequestService,commonConfig) {
    //获取当前用户信息 (value = "审批状态", notes = "默认0，未审批为0，审批通过为1，审批不通过为-1")
    $scope.getNotPassList = function(){
        RequestService.Request(commonConfig.cloudApi+'cloud/app/getAppListByStatus?status=-1','GET').then(function(response){
            console.log(response);
            $scope.NotPassList = response;
        },function(error){
            console.log(error);
        });
    };
    $scope.getNotPassList();

    // //审批操作
    // $scope.Approved = function(id){
    //     RequestService.Request(commonConfig.cloudApi+'cloud/app/setNotStatus?id='+id,'GET').then(function(response){
    //         console.log(response);
    //        if(response.code == 0){
    //            $scope.getPassList();
    //        }else {
    //            modelService.openTipsModel(response.message);
    //        }
    //     },function(error){
    //         console.log(error);
    //     });
    // };
    // $scope.Unapproved = function(id){
    //     RequestService.Request(commonConfig.cloudApi+'cloud/app/setStatus?id='+id,'GET').then(function(response){
    //         console.log(response);
    //         if(response.code == 0){
    //             $scope.getPassList();
    //         }else {
    //             modelService.openTipsModel(response.message);
    //         }
    //     },function(error){
    //         console.log(error);
    //     });
    // }

};